<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jstl/core_rt"%>
<form id="pagerForm" method="post" action="/emaofu-manager/admin/list">
    <input type="hidden" name="pageNum" value="1" />  
    <input type="hidden" name="numPerPage" value="${collectionTO.pageSize}" />
    <!-- <input type="hidden" name="agentId" value="${agentSearchCriteriaTO.agentId}" />
    <input type="hidden" name="status" value="${agentSearchCriteriaTO.status}" />
    <input type="hidden" name="adminId" value="${agentSearchCriteriaTO.adminId}" />
    <input type="hidden" name="agentName" value="${agentSearchCriteriaTO.agentName}" /> -->
</form>


<div class="pageHeader">
	<form onsubmit="return navTabSearch(this);" action="/emaofu-manager/admin/list" method="post">
	<div class="searchBar">
		<!--<ul class="searchContent">
			<li>
				<label>我的客户：</label>
				<input type="text"/>
			</li>
			<li>
			<select class="combox" name="province">
				<option value="">所有省市</option>
				<option value="北京">北京</option>
				<option value="上海">上海</option>
				<option value="天津">天津</option>
				<option value="重庆">重庆</option>
				<option value="广东">广东</option>
			</select>
			</li>
		</ul>
		
		<ul class="searchContent">
			<li>
				<label>代理商ID：</label>
				<input type="text" name="agentId" />
			</li>
			<li>
				<label>状态：</label>
				<input type="text" name="status" />
			</li>
			<li>
				<label>所属销售：</label>
				<input type="text" name="adminId" />
			</li>
		</ul>
		<ul class="searchContent">
			<li>
				<label>代理商名称：</label>
				<input type="text" name="agentName" />
			</li>
			<li>
				<label>入库时间：</label>
				<input type="text" name="agentName" />
			</li>
		</ul>
		<div class="subBar">
			<ul>
				<li><div class="buttonActive"><div class="buttonContent"><button type="submit">检索</button></div></div></li>-->
				<!-- <li><a class="button" href="demo_page6.html" target="dialog" mask="true" title="查询框"><span>高级检索</span></a></li> 
			</ul>-->
		</div>
	</div>
	</form>
</div>
<div class="pageContent">
	<!-- <div class="panelBar">
		<ul class="toolBar">
			<li><a class="add" href="demo_page4.html" target="navTab"><span>添加</span></a></li>
			<li><a class="delete" href="demo/common/ajaxDone.html?uid={sid_user}" target="ajaxTodo" title="确定要删除吗?"><span>删除</span></a></li>
			<li><a class="edit" href="demo_page4.html?uid={sid_user}" target="navTab"><span>修改</span></a></li>
			<li class="line">line</li>
			<li><a class="icon" href="demo/common/dwz-team.xls" target="dwzExport" targetType="navTab" title="实要导出这些记录吗?"><span>导出EXCEL</span></a></li>
		</ul>
	</div> -->
	<table class="table" width="100%" layoutH="138">
		<thead>
			<tr>
				<th width="80">管理员ID</th>
				<th width="180">用户名</th>
				<th width="80">名称</th>
				<th width="160" align="center">创建时间</th>
				<th width="150">权限</th>
				<th width="60">是否超级管理员</th>
				<th width="150">操作</th>
			</tr>
		</thead>
		<tbody>
			<c:forEach items="${collectionTO.list}" var="adminTO" varStatus="status">
				<tr target="sid_user" rel="1">
					<td>${adminTO.id}</td>
					<td>${adminTO.username}</td>
					<td>${adminTO.name}</td>
					<td>${adminTO.createdTime}</td>
					<td>${adminTO.roleName}</td>
					<td><c:if test="${adminTO.isAdmin == 1}">是</c:if><c:if test="${adminTO.isAdmin == 0}">否</c:if></td>
					<td>操作</td>
				</tr>
			</c:forEach>
		</tbody>
	</table>
	<div class="panelBar">
		<div class="pages">
			<span>显示</span>
			<select class="combox" name="numPerPage" onchange="navTabPageBreak({numPerPage:this.value})">
	 			<option value="20" <c:if test="${collectionTO.pageSize==20}">selected</c:if>>20</option>
	            <option value="50" <c:if test="${collectionTO.pageSize==50}">selected</c:if>>50</option>
	            <option value="100" <c:if test="${collectionTO.pageSize==100}">selected</c:if>>100</option>
	            <option value="200" <c:if test="${collectionTO.pageSize==200}">selected</c:if>>200</option>
			</select>
			<span>条，共${totalCount}条</span>
		</div>
		<div class="pagination" targetType="navTab" totalCount="${totalCount}" numPerPage="${collectionTO.pageSize}" pageNumShown="${pageNumShow}" currentPage="${collectionTO.pageNo}">

	</div>
</div>
